{{outlet}}
<div class="col-sm-12">
  <div class="box  ">
    <div class="row">
      <div class="col-sm-9 nopadding-left">
        <div class="col-sm-5">
            <div class="input-group">
                {{input class="form-control" type="text" placeholder="搜索 姓名/床位号" value=queryStayBack enter="searchStaff"}}
                <span class="input-group-btn">
                  <button class="btn btn-primary btn-reduce" type="button" style="touch-action: manipulation; -ms-touch-action: manipulation;" {{action "searchStaff" on="click"}}>
                    <i class="fa fa-search"></i>
                  </button>
                </span>
            </div>
        </div>
      </div>
      <div class="col-sm-3">
        {{#ui/mix-button class="user-btn pull-right" iconClass="fa-plus" text='添加退住登记' clickAction="toStayBackDetail" toStayBackDetail="toStayBackDetail" }}
        {{/ui/mix-button}}
      </div>
    </div>




    <table id="datatable1" cellpadding="0" cellspacing="0" border="0" class="datatable table table-bordered table-hover dataTable" aria-describedby="datatable1_info">
        <thead>
            <tr role="row">
                <th rowspan="1" colspan="1">姓名</th>
                <th rowspan="1" colspan="1" width="">身份证号</th>
                <th rowspan="1" colspan="1" width="">床位号</th>
                <th rowspan="1" colspan="1" width="">申请状态</th>
                <th rowspan="1" colspan="1" width="">退住日期</th>
                <th class="center" rowspan="1" colspan="1" width="">操作</th>
            </tr>
        </thead>
        <tbody role="alert" aria-live="polite" aria-relevant="all" class="">
            {{#if customerList}}
                {{#each customerList as |customer|}}
                    <tr>
                        <td class="ellipsis" {{action "toStayBackDetail" customer.id on="click"}}>{{customer.customer.name}}</td>
                        <td class="ellipsis " {{action "toStayBackDetail" customer.id on="click"}}>{{customer.customer.cardCode}}</td>
                        <td class="ellipsis " {{action "toStayBackDetail" customer.id on="click"}}>{{customer.customer.bed.name}}</td>
                        <td class="ellipsis " {{action "toStayBackDetail" customer.id on="click"}}>{{customer.customerStatus}}</td>
                        <td class="ellipsis " {{action "toStayBackDetail" customer.id on="click"}}>{{customer.leaveDateString}}</td>
                        <td class="ellipsis center">
                          {{#if (eq customer.leaveStatusTypecodNumber 1)}}
                          已退住
                          {{else}}
                          <a class="" {{action "chengeState" customer on="click"}}>{{customer.customerStatusClick}}</a>
                          &nbsp;&nbsp;&nbsp;&nbsp;
                          <a class=""  {{action "theToVoid" customer  on="click"}}>作废</a>
                          {{/if}}
                        </td>
                    </tr>
                {{/each}}
            {{/if}}

        </tbody>
    </table>
    {{#if customerList}}
        {{page-numbers content=customerList showFL=true numPagesToShow=5}}
    {{else}}
            <h1 class="col-sm-12 center unTask">暂无退住记录</h1>
    {{/if}}
  </div>
</div>
